package com.jz.community.basecomm.bean;

/**
 * Created by Tony.Fan on 2018/3/20 13:34
 */
public class LoginInfo extends BaseResponseInfo {

    private String access_token;
    private String refresh_token;
    private String wxToken;
    private String unionid;
    private String token_type;
    private String openid;
    private String mobile;
    private ProfileBean profile;

    public ProfileBean getProfile() {
        return profile;
    }

    public void setProfile(ProfileBean profile) {
        this.profile = profile;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public String getWxToken() {
        return wxToken;
    }

    public void setWxToken(String wxToken) {
        this.wxToken = wxToken;
    }

    public String getToken_type() {
        return token_type;
    }

    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }


    public static class ProfileBean {
        /**
         * attributes : {"name":"Tony","roles":"1,13|SQR_USER,FC_USER","user_id":706011}
         * id : oLeb_vneX_l3hXNkyxfNLTXV2TGk
         */

        private ProfileBean.AttributesBean attributes;
        private String id;

        public ProfileBean.AttributesBean getAttributes() {
            return attributes;
        }

        public void setAttributes(ProfileBean.AttributesBean attributes) {
            this.attributes = attributes;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public static class AttributesBean {
            /**
             * name : Tony
             * roles : 1,13|SQR_USER,FC_USER
             * user_id : 706011
             */

            private String name;
            private String roles;
            private String user_id;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getRoles() {
                return roles;
            }

            public void setRoles(String roles) {
                this.roles = roles;
            }

            public String getUser_id() {
                return user_id;
            }

            public void setUser_id(String user_id) {
                this.user_id = user_id;
            }
        }
    }
}
